//
//  ZHIMDefines.h
//  ZHIMCore
//
//  Created by Chen Zhangli on 2021/1/20.
//

#import <Foundation/Foundation.h>


/**
 *  聊天类型
 */
typedef NS_ENUM(NSInteger, ZHIMChatType) {
    ZHIMChatTypeSingle = 1,           /// 单聊
    ZHIMChatTypeGroup  = 2,           /// 群聊
    ZHIMChatTypeCustomerService =  3, /// 客服
    ZHIMChatTypeOfficial = 4          /// 公众号
};


/*
 * 消息内容类型
 */
typedef NS_ENUM(NSInteger, ZHIMMessageType) {
    ZHIMMessageTypeUnknown,                 /// 未知（不支持的类型）
    ZHIMMessageTypeText      = 1,           /// 文字
    ZHIMMessageTypeImage     = 2,           /// 图片
    ZHIMMessageTypeFile      = 3,           /// 文件
    ZHIMMessageTypeAudio     = 4,           /// 语音
    ZHIMMessageTypeVideo     = 5,           /// 视频
    ZHIMMessageTypeVoiceCall = 6,           /// 语音通话
    ZHIMMessageTypeVideoCall = 7,           /// 视频通话
    ZHIMMessageTypeTip       = 8,           /// 提示（通知）
    ZHIMMessageTypeLocation  = 9,           /// 位置
    ZHIMMessageTypeQuestion  = 10,          /// 智能问答
    ZHIMMessageTypeEvaluate  = 12,          /// 评价
    ZHIMMessageTypeOfficial  = 99           /// 公众号
};


/*
 * 消息状态
 */
typedef NS_ENUM(NSInteger, ZHIMMessageStatus) {
    ZHIMMessageStatusDelivering = -1,   /// 发送中
    ZHIMMessageStatusSent       = 0,    /// 已发
    ZHIMMessageStatusReached    = 1,    /// 已达
    ZHIMMessageStatusRead       = 2,    /// 已读
    ZHIMMessageStatusFailed     = 3     /// 发送失败
};


/*
 * 消息方向
 */
typedef NS_ENUM(NSInteger, ZHIMMessageDirection) {
    ZHIMMessageDirectionSend = 0,    /// 发送的消息
    ZHIMMessageDirectionReceive  /// 接收的消息
};


/*
 * 提示类型
 */
typedef NS_ENUM(NSInteger, ZHIMTipType) {
    ZHIMTipTypeDefault = 0,
    ZHIMTipTypeTime         /// 时间
};


/*
 * 文件类型
 */
typedef NS_ENUM(NSInteger, ZHIMFileType) {
    ZHIMFileTypeImage = 1,    /// 图片
    ZHIMFileTypeAudio = 2,    /// 音频
    ZHIMFileTypeVideo = 3,    /// 视频
    ZHIMFileTypeFile  = 4     /// 文件
};


///*
// * 角色
// */
//typedef NS_ENUM(NSInteger, ZHIMRole) {
//    ZHIMRoleDefault,
//    ZHIMRoleCustomerService
//};

/*
 * 会话类型
 */
typedef NS_ENUM(NSInteger, ZHIMConversationType) {
    ZHIMConversationTypeDefault,
    ZHIMConversationTypeCS,
    ZHIMConversationTypeOfficial,
};



